import request from '@/utils/request'

// 头像上传
export const uploadsPOST = (data) => {
  return request({
    url: '/uploads',
    method: 'post',
    data
  })
}

// 生成短信验证码
export const captchaSendsms = () => {
  return request({
    url: '/captcha?type=sendsms'
  })
}

// 短信发送
export const sendSMS = (data) => {
  return request({
    url: '/sendsms',
    method: 'post',
    data
  })
}

// 用户注册接口
export const registerPOST = (data) => {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}
